package org.jeecg.modules.rental.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.time.LocalDateTime;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: rental_ebike_return
 * @Author: jeecg-boot
 * @Date:   2024-12-14
 * @Version: V1.0
 */
@Data
@TableName("rental_ebike_return")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rental_ebike_return对象", description="rental_ebike_return")
public class RentalEbikeReturn implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
	/**套餐id*/
	@Excel(name = "套餐id", width = 15)
    @ApiModelProperty(value = "套餐id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accountPackageId;
	/**订单id*/
	@Excel(name = "订单id", width = 15)
    @ApiModelProperty(value = "订单id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String accountId;
	/**车辆id*/
	@Excel(name = "车辆id", width = 15)
    @ApiModelProperty(value = "车辆id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long carId;
	/**使用开始*/
	@Excel(name = "使用开始", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "使用开始")
    private LocalDateTime startTime;
	/**使用结束*/
	@Excel(name = "使用结束", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "使用结束")
    private LocalDateTime endTime;
	/**押金金额*/
	@Excel(name = "押金金额", width = 15)
    @ApiModelProperty(value = "押金金额")
    private BigDecimal depositAmount;
	/**押金状态(1:未退回 2：已退回 3退回失败)*/
	@Excel(name = "押金状态(1:未退回 2：已退回 3退回失败)", width = 15)
    @ApiModelProperty(value = "押金状态(1:未退回 2：已退回 3退回失败)")
    private Integer depositStatus;
    @TableField(exist = false)
    private String depositStatusTxt;
	/**退款金额*/
	@Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String reviewer;
	/**审核时间*/
	@Excel(name = "审核时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private LocalDateTime reviewTime;
	/**审核备注*/
	@Excel(name = "审核备注", width = 15)
    @ApiModelProperty(value = "审核备注")
    private String reviewComment;
	/**归还状态（1：待审核，2：审核通过，3：审核不通过，4：还车失败）*/
	@Excel(name = "归还状态", width = 15)
    @ApiModelProperty(value = "归还状态")
    private Integer reviewStatus;
    @TableField(exist = false)
    private String reviewStatusTxt;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private LocalDateTime createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private LocalDateTime updateTime;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**删除标识 0-正常 1-已删除*/
	@Excel(name = "删除标识 0-正常 1-已删除", width = 15)
    @ApiModelProperty(value = "删除标识 0-正常 1-已删除")
    @TableLogic(value="0", delval = "1")
    private String isDeleted;
}
